from django.db import models

# Create your models here.

class User(models.Model):
    '''用户表'''
    username = models.CharField(unique=True, max_length=63)
    password = models.CharField(max_length=255)
    gender = models.IntegerField(default=1)
    # birthday = models.DateField(blank=True, null=True)
    # last_login_time = models.DateTimeField(blank=True, null=True)
    # last_login_ip = models.CharField(max_length=63)
    user_level = models.IntegerField(blank=True, null=True)
    nickname = models.CharField(max_length=63)
    mobile = models.CharField(max_length=20)
    avatar = models.CharField(max_length=255)
    weixin_openid = models.CharField(max_length=63)
    session_key = models.CharField(max_length=100)
    status = models.IntegerField(default=1)